﻿@using OBUCare.Core.Models;
@using OBUCare.Core.Common;
@using OBUCare.Web.Infrastructure
@{ 
    List<NavigationData> navItems = new List<NavigationData>() 
    {
        new NavigationData("营业厅维修业务日报表","/Report/Daily"),
        new NavigationData("日常日报明细","/Report/Transaction"),
        new NavigationData("录入发票明细查询","/Report/Invoice")
    };
    
    Html.Telerik().PanelBar()
        .Name("PanelTransaction")
        .BindTo(navItems, (item, navdata) =>
        {
            item.Text = navdata.Text;
            item.Url = navdata.NavigateUrl;
            item.Expanded = navdata.Expanded;
            item.Visible = UIUtility.CheckAccessRight(navdata.NavigateUrl);
        }).Render();
        /*.Items(panelBarItem =>
        {
            //panelBarItem.Add().Text("日报明细查询").Url("/Report/Transaction");
            //panelBarItem.Add().Text("录入发票明细查询").Url("/Report/Invoice");
            panelBarItem.Add().Text("营业厅维修业务日报表").Url("/Report/Daily");
            panelBarItem.Add().Text("日常日报明细").Url("/Report/Transaction");
            panelBarItem.Add().Text("录入发票明细查询").Url("/Report/Invoice");
        })
        .Render(); */
}